package com.lvmama.pangolin.mt.service.impl;

import com.lvmama.pangolin.mybatis.mapper.mt.TicketCommodityMtMapper;
import com.lvmama.pangolin.entity.mt.TicketCdetailMt;
import com.lvmama.pangolin.entity.mt.TicketCommodityMt;
import com.lvmama.pangolin.mt.service.TicketCommodityMtService;
import com.lvmama.pangolin.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * Created by zhoutianqi on 2017/09/06.
 */
@Service
@Transactional
public class TicketCommodityMtServiceImpl extends AbstractService<TicketCommodityMt> implements TicketCommodityMtService {
    @Autowired
    private TicketCommodityMtMapper ticketCommodityMtMapper;

	@Override
	public TicketCommodityMt selectById(String commodityId, String productId) {
		return ticketCommodityMtMapper.selectById(commodityId, productId);
	}

	@Override
	public int updateByCdetail(TicketCdetailMt item) {
		return ticketCommodityMtMapper.updateByCdetail(item);
	}

	@Override
	public int saveByCdetail(TicketCdetailMt item) {
		return ticketCommodityMtMapper.saveByCdetail(item);
	}

}
